home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / Developer Essentials May91 / MPW Interfaces & Libraries 3.2 / AIncludes / LAPEqu.a < prev    next >
Encoding:
Text File  |  1991-04-17  |  4.8 KB  |  123 lines  |  [TEXT/MPS ]

  1. ;___________________________________________________________________________
  2. ;    Lap Manager Public Equates
  3. ;    © Apple Computer 1989
  4. ;    All rights reserved
  5.  
  6. ;
  7. ; LAP Manager call codes passed in D0 (call at [ATalkHk2] + 2)
  8. ;
  9. LRdDispatch EQU         1                               ; Dispatch to protocol handler
  10. LWrtInsert  EQU         2                               ; Insert in LAPWrite hook
  11. LWrtRemove  EQU         3                               ; Remove from LAPWrite hook
  12. LWrtGet     EQU         4                               ; Get who's in LAPWrite hook
  13. LSetInUse   EQU         5                               ; Set address in use flag
  14. LGetSelfSend EQU        6                               ; Get value of self send flag
  15. LAARPAttach EQU         7                               ; Attach an AARP listener
  16. LAARPDetach EQU         8                               ; Detach an AARP listener
  17. LGetATalkInfo EQU       9                               ; Get AppleTalk info
  18. LGetPortInfo EQU        10                              ; Get port info
  19. LOpenADEV   EQU         11                              ; Open ADEV file
  20. LNSetInUse  EQU         12                              ; Port-based set-in-use call
  21. LGetBridgeInfo EQU      13                              ; Get bridge info
  22. LSetATalkInfo EQU       14                              ; Set AppleTalk info
  23. LShutdownBridge EQU     15                              ; Shut down bridge
  24. LInit       EQU         16                              ; init run time LAP manager
  25. LUsePortB   EQU         17                              ; request use of printer port
  26. LFreePortB  EQU         18                              ; grant use of printer port
  27. LStatPortB  EQU         19                              ; obtain current printer port status
  28. LNetAlert   EQU         20                              ; notify user of network alert condition
  29. L802Attach  EQU         21                              ; attach an 802.2 protocol handler
  30. L802Detach  EQU         22                              ; detach an 802.2 protocol handler
  31. LAddAEQ     EQU         23                              ; add AppleTalk event queue entry
  32. LRmvAEQ     EQU         24                              ; remove AppleTalk event queue entry
  33. LGetAEQ     EQU         25                              ; get pointer to AppleTalk event queue
  34. LLastCall   EQU         LGetAEQ                         ; Last valid call
  35.  
  36. ;
  37. ; Flag bits passed in D1 on LWrtInsert
  38. ;
  39. LWSelfSend  EQU         7                               ; ADEV handles self send
  40. LWSrvrWks   EQU         5                               ; Honor server/wks bit
  41. LWVMdefer   EQU         4                               ; buffer and defer incoming packets
  42. LWReserved  EQU         0                               ; Reserved for internal use
  43.  
  44. ;
  45. ; atlk call codes passed in D0 (call at atlk start plus 2)
  46. ;
  47. AInstall    EQU         1                               ; Installation
  48. AShutdown   EQU         2                               ; Shutdown
  49. AGetInfo    EQU         3                               ; Get link information
  50. AGetMCast   EQU         4                               ; Get multicast addr
  51. ASetMCast   EQU         5                               ; Set multicast addr
  52. ADelMCast   EQU         6                               ; Delete multicast addr
  53. AOpen       EQU         7                               ; Open an ATlk
  54. AClose      EQU         8                               ; Close an ATlk
  55. AEnq        EQU            9                                ; send ENQ's for a node address
  56. ADelAddr    EQU            10                                ; remove an established node address
  57.  
  58. ;
  59. ; ADEV call code passed in D0 (call at ADEV start)
  60. ;
  61.  
  62. GetADEV     EQU         101                             ; Get next ADEV
  63. SelectADEV  EQU         102                             ; Select ADEV
  64. ReSelADEV   EQU         103                             ; Re-selected ADEV
  65.  
  66. LAPMgrPtr   EQU         $B18                            ; This points to our start (???ATalkHk2?)
  67. LAPMgrCall  EQU         2                               ; Offset to make LAP manager calls
  68. atlkCall    EQU         2                               ; Offset to make atlk calls at
  69.  
  70. ;
  71. ; Resource IDs
  72. ;
  73. adevBaseID  EQU         -4032                           ; Base resource ID for ADEVs
  74.  
  75. ;
  76. ; atlk AGetInfo call
  77. ;
  78.                                                         ; (big enough to handle 6 byte link addr)
  79.  
  80. ATlkInfo    RECORD      0                               ; link information
  81. Version     DS.W        1                               ; version number
  82. InfoLength  DS.W        1                               ; length of this rec
  83. LinkSpeed   DS.L        1                               ; speed of link in bits/second
  84. BandWidth   DS.B        1                               ; bandwidth factor
  85. Reserved    DS.B        3
  86. Flags       DS.B        1                               ; informative flags (see below)
  87. LinkAdrLen  DS.B        1                               ; link address length in bytes
  88. LinkAddress DS.B        6                               ; start of link address (reserve 6 bytes)
  89. MaxNodes    DS.W        1                               ; max. number of nodes (base zero)
  90. Size        EQU         *
  91.             ENDR
  92.  
  93. AInfoVers   EQU         3                               ; version number describes reply buffer below
  94. AInfoSz     EQU         ATlkInfo.Size                   ; size in bytes of reply buffer
  95.  
  96. ;
  97. ; atlk AGetInfo flags
  98. ;
  99. AtlkExtended EQU        7                               ; bit in on if link has extended addressing
  100. AtlkROnly   EQU         6                               ; true if link is for router only ports
  101.  
  102. ;    Transition Queue Structures
  103.  
  104. ;    Transition Queue Element
  105.  
  106. ATQel            RECORD    0
  107. AeQQLink        DS.L    1                                ; link field
  108. AeQQType        DS.W    1                                ; queue type (dont care)
  109. AeQCallAddr        DS.L    1                                ; procedure address
  110. AeQSize            EQU        *
  111.                 ENDR
  112.  
  113. ;    Transitions
  114. ; %%% Change spelling to match inside Mac
  115. ;AOpenTask        EQU        0                                ; q type for open
  116. ;ACloseTellTask    EQU        2
  117. ;ACloseAskTask    EQU        3
  118. ;ACanclAskTask    EQU        4
  119. ATTransOpen            EQU        0                            ; Open Transition
  120. ATTransClose        EQU        2                            ; Close Transition
  121. ATTransClosePrep    EQU        3                            ; Close Prep Transition
  122. ATTransCancelClose    EQU        4                            ; Cancel Close Prep
  123.